<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {

    public function __construct() {
        parent::__construct();

        $is_lieying = I('session.lieying_login',0);
        if(!$is_lieying) {
            $this -> redirect('/Home/Index/index', array());
        }
    }
}